firstIsInstance

inline fun <T : Any> Array<*>.firstIsInstance(check: (T) -> Boolean = { true }): T(source)
inline fun <T : Any> Iterable<*>.firstIsInstance(check: (T) -> Boolean = { true }): T(source)
inline fun <T : Any> Iterator<*>.firstIsInstance(check: (T) -> Boolean = { true }): T(source)
inline fun <T : Any> Sequence<*>.firstIsInstance(check: (T) -> Boolean = { true }): T(source)

Returns the first T element that satisfies the check or throws NoSuchElementException if nothing was found.